package com.zjlab.sandtable.handler;

import cn.hutool.json.JSONUtil;
import com.zjlab.georeceive.bean.AreaBase;
import com.zjlab.sandtable.MfProcessor;
import com.zjlab.sandtable.bean.MfLogsInfo;
import com.zjlab.sandtable.utils.RemoteCall;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;

/**
 * @author xue
 * @create 2022-11-07 15:21
 */
@Slf4j
@Component
@RequiredArgsConstructor
@ChannelHandler.Sharable
public class MfLogsInfoHandler extends SimpleChannelInboundHandler<MfLogsInfo> {

    private final MfProcessor mfProcessor;

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MfLogsInfo msg) throws Exception {
        mfProcessor.receiveMfLogsInfo(msg);
    }

}